package cn.rdq.iknesssystem.controller;

import cn.rdq.common.CommonResult;
import cn.rdq.iknesssystem.service.DashBoardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dashboard")
public class DashBoardController {

    @Autowired
    private DashBoardService dashBoardService;

    @RequestMapping("")
    public CommonResult dashboard() {
        return CommonResult.successObj(dashBoardService.dashboard());
    }

}
